package com.yuw.dao;

import com.yuw.bean.BlogBean;

import java.util.List;

public interface BlogBeanMapper {

    /**
     * 两个表的关联查询[一对一的关联查询]
     *
     * @param id blog的主键id
     * @return 查询结果集
     */
    List<BlogBean> selectBlog(Integer id);

    /**
     * 两个表的关联查询[一对多的关联查询]
     *
     * @param id blog的主键id
     * @return 查询结果集
     */
    List<BlogBean> selectBlogAndPost(Integer id);

    int deleteByPrimaryKey(Integer id);

    int insert(BlogBean record);

    int insertSelective(BlogBean record);

    BlogBean selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BlogBean record);

    int updateByPrimaryKey(BlogBean record);
}